<template>
  <div>
    <div class="wrapper">
      <div class="img">
        <img :src="f1.picUrl" alt="" />
      </div>
      <div class="music_info">
        <div class="music_name">
          <span>{{ f1.song.name }}</span>
          <span class="aa">{{f1.song.alias[0]}}</span>
        </div>
        <div class="man_name aa">{{f1.song.artists[0].name}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "New_music",
  props: {
    f1: {
      tyep: Object,
      default: {},
    },
  },
};
</script>

<style lang="less" scoped>
.wrapper {
  display: flex;
  .img {
    width: 60px;
    height: 60px;
    background: blanchedalmond;
    cursor: pointer;
    img {
      width: 100%;
      height: 100%;
    }
  }

  .music_info {
      flex: 1 0 ;
    box-sizing: border-box;
    padding-left: 10px;
    .music_name {
      margin-bottom: 10px;
      word-break: break-all;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1; /* 这里是超出几行省略 */
      overflow: hidden;
      cursor: pointer;
    }
  }
}
.wrapper:hover {
  background: #f0f0f0;
}
.aa {
  color: #666;
}
.aa:hover{
    color: #999;
    cursor: pointer;
}
</style>